//
//  CeoJiaGeVC.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/4/15.
//  Copyright © 2017年 金橙云. All rights reserved.
//

#import "CeoJiaGeVC.h"


#import "DCNavTabBarController.h"
#import "CEOZhuSouVC.h"
#import "CEOPeiTaoVC.h"
#import "CEOBusVC.h"


@interface CeoJiaGeVC ()

@end

@implementation CeoJiaGeVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"价格审批";
    self.view.backgroundColor = BgColor;
    
    CEOZhuSouVC*zhuShouVC = [[CEOZhuSouVC alloc] init];
    zhuShouVC.title = @"主售房源";
    
    CEOBusVC *busVC = [[CEOBusVC alloc] init];
    busVC.title = @" 商业房源";
    
    CEOPeiTaoVC *peiVC = [[CEOPeiTaoVC alloc] init];
    peiVC.title = @"配套房源";
    
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, LL_StatusBarAndNavigationBarHeight, B_WIDTH, 1)];
    [self.view addSubview:view];
    
    NSArray *subViewControllers = @[zhuShouVC,busVC,peiVC];
    DCNavTabBarController *tabBarVC = [[DCNavTabBarController alloc]initWithSubViewControllers:subViewControllers];
    tabBarVC.view.frame = CGRectMake(0, LL_StatusBarAndNavigationBarHeight, B_WIDTH, B_HEIGHT - 44);
    [self.view addSubview:tabBarVC.view];
    [self addChildViewController:tabBarVC];
    
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
